// src/router/modules/tcm.js
import Layout from '@/layout'

export default {
  path: '/tcm',
  component: Layout,
  name: 'Tcm',
  meta: { title: '中医理疗', icon: 'icon' }, // 确保有合适的图标
  children: [
    {
      path: 'category',
      name: 'TcmCategory',
      // 组件路径必须匹配实际文件位置：src/views/tcm/category/index.vue
      component: () => import('@/views/tcm/category/index'),
      meta: {
        title: '穴位分类',
        icon: 'category',
        permissions: ['category:category:list'] // 确保权限配置正确
      }
    },

    {
      path: 'purchase', // 新增购买记录路由
      name: 'TcmPurchase',
      component: () => import('@/views/tcm/purchase/index'), // 确保组件路径正确
      meta: {
        title: '穴位图片购买记录',
        icon: 'purchase',
        permissions: ['purchase:purchase:list'] // 权限需与后端一致
      }
    },

    // {
    //   path: 'rel', // 新增图片-穴位分类关联表
    //   name: 'TcmRel',
    //   component: () => import('@/views/tcm/rel/index'), // 确保组件路径正确
    //   meta: {
    //     title: '图片-穴位分类关联表',
    //     icon: 'rel',
    //     permissions: ['rel:rel:list'] // 权限需与后端一致
    //   }
    // },


  ]
}

